import Qs from 'qs'
import request from '@/utils/request'

//党建屏上方接口
export function screenTopData(params) {
  return request({
    url: '/screenParty/screenTopData',
    headers: {
      'Content-Type': 'application/json'
    },
    method: 'get',
    params,
    paramsSerializer: function(params) {
      return Qs.stringify(params, { arrayFormat: "repeat" });
    },
  })
}

//党建屏中间接口
export function screenMidData(params) {
    return request({
      url: '/screenParty/screenMidData',
      headers: {
        'Content-Type': 'application/json'
      },
      method: 'get',
      params,
      paramsSerializer: function(params) {
        return Qs.stringify(params, { arrayFormat: "repeat" });
      },
    })
}
  
//党建屏下方接口
export function screenBottomData(params) {
    return request({
      url: '/screenParty/screenBottomData',
      headers: {
        'Content-Type': 'application/json'
      },
      method: 'get',
      params,
      paramsSerializer: function(params) {
        return Qs.stringify(params, { arrayFormat: "repeat" });
      },
    })
  }